﻿using Microsoft.EntityFrameworkCore;
using Traceability.App.Domain.Entities;

namespace Traceability.App.Infrastructure
{
    public class MyDbContext : DbContext
    {
        public MyDbContext(DbContextOptions options) : base(options)
        {
        }
        /// <summary>
        /// 溯源管理基本信息实体
        /// </summary>
        public DbSet<Basic_Traceability> Basic_Traceability {  get; set; } 

        /// <summary>
        /// 商品实体
        /// </summary>
        public DbSet<Goods_Information> Goods_Information { get; set; }

        /// <summary>
        /// 养殖信息实体
        /// </summary>
        public DbSet<Breeding_Information> Breeding_Information { get; set; }

        /// <summary>
        /// 免疫信息实体
        /// </summary>
        public DbSet<Immune_Information> Immune_Information {  get; set; }

        /// <summary>
        /// 屠宰信息实体
        /// </summary>
        public DbSet<Slaughter_Information> Slaughter_Information {  get; set; }

        /// <summary>
        /// 深加工信息实体
        /// </summary>
        public DbSet<Processing_Information> Processing_Information { get; set; }

        /// <summary>
        /// 供应商信息实体
        /// </summary>
        public DbSet<Supplier> Supplier {  get; set; }

        /// <summary>
        /// 企业信息实体
        /// </summary>
        public DbSet<Company_Information> Company_Information {  get; set; }

        /// <summary>
        /// 图片信息实体
        /// </summary>
        public DbSet<Picture_Information> Picture_Information {  get; set; }

    }
}
